﻿using IntelligentAgriculture.Domain.Entity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IntelligentAgriculture.Domain.Interface.Iridgepletype
{
    public interface IridegRepository
    {
        /// <summary>
        /// 显示方法
        /// </summary>
        /// <returns></returns>
        IQueryable<Ridgepole> Showinfo();

        /// <summary>
        /// 添加方法
        /// </summary>
        /// <param name="entity"></param>
        /// <returns></returns>
        Task<int> Add(Ridgepole entity);

        /// <summary>
        /// 修改方法
        /// </summary>
        /// <param name="entity"></param>
        /// <returns></returns>
        Task<int> Update(Ridgepole entity);
        /// <summary>
        /// 逻辑删除方法
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<int> Delete(int id);

        /// <summary>
        /// 批量逻辑删除方法
        /// </summary>
        /// <param name="ids"></param>
        /// <returns></returns>
        Task<int> DeleteRange(IEnumerable<int> ids);

        /// <summary>
        /// 反填方法
        /// </summary>
        /// <param name="id">id</param>
        /// <returns>返回列表</returns>
        Task<Ridgepole>Find(int id);


    }
}
